package com.nameless.controller.api;

import com.nameless.dao.BrandDao;
import com.nameless.entity.Brand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description: 品牌api
 * @date 2023-02-28 18:55:23
 */
@SuppressWarnings("all")
@RestController
@RequestMapping("/car/api/brand")
public class BrandControllerApi {
    @Autowired
    private BrandDao brandDao;
    @GetMapping("/list")
    public List<Brand> list(){
        return  brandDao.selectList(null);
    }
}
